<?php


class HtmlFormatter implements FormatterInterface
{

    /**
     * @param $text
     * @return mixed
     */
    public function format($text)
    {
        return sprintf('<p>%s</p>', $text);
    }
}